require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'
class TC_Forums < Test::Unit::TestCase
  def test_27
    $ie.goto($UniVar)
    $ie.refresh()
    $ie.link(:text, 'Control Panel').click
    $ie.link(:text, 'Administration').click
    $ie.table(:index, 7).click
    $ie.link(:index, 14).click
    $ie.link(:text, 'New Group').click    
    $ie.text_field(:index, 1).value = "aaaWatir Group"
    $ie.text_field(:index, 2).value = "A description of my new watir forum group"
    $ie.link(:text, 'Save').click
    $ie.link(:text, 'Edit').click
    $ie.text_field(:index, 2).value = "Lets change the description"
    $ie.link(:text, 'Save').click
    $ie.refresh()
    $ie.link(:text, 'aaaWatir Group').click
    assert($ie.text_field(:index, 2).value = "Lets change the description")
    $ie.link(:index, 14).click
    $ie.link(:text, 'Delete').click_no_wait
    hwnd = $ie.enabled_popup(20)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end
  end
end